import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'

Vue.config.productionTip = false
Vue.filter('dateFormat',(orignval)=>{
  const dt = new Date(orignval)
  const y = dt.getFullYear()
  const m = (dt.getMonth() + 1 + '').padStart(2,0)
  const d = (dt.getDate() + 1 + '').padStart(2,0)
  return `${y}-${m}-${d}`
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
